home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / MPW Interfaces & Libraries / PInterfaces / ROMDefs.p < prev    next >
Encoding:
Text File  |  1992-01-29  |  3.5 KB  |  106 lines  |  [TEXT/MPS ]

  1.  
  2. {
  3. Created: Monday, September 16, 1991 at 12:30 AM
  4.  ROMDefs.p
  5.  Pascal Interface to the Macintosh Libraries
  6.  
  7.   Copyright Apple Computer, Inc. 1986-1991
  8.   All rights reserved
  9. }
  10.  
  11.  
  12. {$IFC UNDEFINED UsingIncludes}
  13. {$SETC UsingIncludes := 0}
  14. {$ENDC}
  15.  
  16. {$IFC NOT UsingIncludes}
  17.  UNIT ROMDefs;
  18.  INTERFACE
  19. {$ENDC}
  20.  
  21. {$IFC UNDEFINED UsingROMDefs}
  22. {$SETC UsingROMDefs := 1}
  23.  
  24.  
  25. CONST
  26. appleFormat = 1;                        {Format of Declaration Data (IEEE will assign real value)}
  27. romRevision = 1;                        {Revision of Declaration Data Format}
  28. testPattern = 1519594439;                {FHeader long word test pattern}
  29.  
  30. sCodeRev = 2;                            {Revision of code (For sExec)}
  31. sCPU68000 = 1;                            {CPU type = 68000}
  32. sCPU68020 = 2;                            {CPU type = 68020}
  33. sCPU68030 = 3;                            {CPU type = 68030}
  34. sCPU68040 = 4;                            {CPU type = 68040}
  35. sMacOS68000 = 1;                        {Mac OS, CPU type = 68000}
  36. sMacOS68020 = 2;                        {Mac OS, CPU type = 68020}
  37. sMacOS68030 = 3;                        {Mac OS, CPU type = 68030}
  38. sMacOS68040 = 4;                        {Mac OS, CPU type = 68040}
  39.  
  40. board = 0;                                {Board sResource - Required on all boards}
  41. displayVideoAppleTFB = 16843009;        {Video with Apple parameters for TFB card.}
  42. displayVideoAppleGM = 16843010;            {Video with Apple parameters for GM card.}
  43. networkEtherNetApple3Com = 33620225;    {Ethernet with apple parameters for 3-Comm card.}
  44. testSimpleAppleAny = -2147417856;        {A simple test sResource.}
  45. endOfList = 255;                        {End of list}
  46. defaultTO = 100;                        {100 retries.}
  47.  
  48. sRsrcType = 1;                            {Type of sResource}
  49. sRsrcName = 2;                            {Name of sResource}
  50. sRsrcIcon = 3;                            {Icon}
  51. sRsrcDrvrDir = 4;                        {Driver directory}
  52. sRsrcLoadDir = 5;                        {Load directory}
  53. sRsrcBootRec = 6;                        {sBoot record}
  54. sRsrcFlags = 7;                            {sResource Flags}
  55. sRsrcHWDevId = 8;                        {Hardware Device Id}
  56. minorBaseOS = 10;                        {Offset to base of sResource in minor space.}
  57. minorLength = 11;                        {Length of sResource’s address space in standard slot space.}
  58. majorBaseOS = 12;                        {Offset to base of sResource in Major space.}
  59. majorLength = 13;                        {Length of sResource in super slot space.}
  60. sRsrccicn = 15;                            {Color icon}
  61. sRsrcicl8 = 16;                            {8-bit (indexed) icon}
  62. sRsrcicl4 = 17;                            {4-bit (indexed) icon}
  63. sGammaDir = 64;                            {sGamma directory}
  64. sDRVRDir = 16;                            {sDriver directory}
  65.  
  66. drSwApple = 1;                            {To ask for or define an Apple-compatible SW device.}
  67. drHwTFB = 1;                            {HW ID for the TFB (original Mac II) video card.}
  68. drHw3Com = 1;                            {HW ID for the Apple EtherTalk card.}
  69. drHwBSC = 3;
  70. catBoard = 1;                            {Category for board types.}
  71. catTest = 2;                            {Category for test types -- not used much.}
  72. catDisplay = 3;                            {Category for display (video) cards.}
  73. catNetwork = 4;                            {Category for Networking cards.}
  74.  
  75. boardId = 32;                            {Board Id}
  76. pRAMInitData = 33;                        {sPRAM init data}
  77. primaryInit = 34;                        {Primary init record}
  78. timeOutConst = 35;                        {Time out constant}
  79. vendorInfo = 36;                        {Vendor information List. See Vendor List, below}
  80. boardFlags = 37;                        {Board Flags}
  81. secondaryInit = 38;                        {Secondary init record/code}
  82. sRsrcVidNames = 65;                        {Video mode name directory}
  83.  
  84. vendorId = 1;                            {Vendor Id}
  85. serialNum = 2;                            {Serial number}
  86. revLevel = 3;                            {Revision level}
  87. partNum = 4;                            {Part number}
  88. date = 5;                                {Last revision date of the card}
  89.  
  90. typeBoard = 0;                            {Type for board types.}
  91. typeApple = 1;
  92. typeVideo = 1;                            {Type for video types.}
  93. typeEtherNet = 1;                        {Type for ethernet types.}
  94. testByte = 32;                            {Test byte.}
  95. testWord = 33;                            {0021}
  96. testLong = 34;                            {Test Long.}
  97. testString = 35;                        {Test String.}
  98.  
  99.  
  100. {$ENDC} { UsingROMDefs }
  101.  
  102. {$IFC NOT UsingIncludes}
  103.  END.
  104. {$ENDC}
  105.  
  106.